﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Imaging;
using System.Windows.Shapes;

namespace Jeopardy.Views
{
    /// <summary>
    /// Interaction logic for MainView.xaml
    /// </summary>
    public partial class MainView : Window
    {
        /// <summary>
        /// Constructor for the main view.
        /// </summary>
        public MainView()
        {
            InitializeComponent();
        }

        /// <summary>
        /// Exit command executed.
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void ExitCommand(object sender, RoutedEventArgs e)
        {
            Application.Current.Shutdown();
        }

        /// <summary>
        /// Show about panel command executed.
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        public void ShowAboutPanel(object sender, RoutedEventArgs e)
        {
            AboutBox aboutBox = new AboutBox();
            aboutBox.Show();
        }

        /// <summary>
        /// Show question creator panel command executed.
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void ShowQuestionCreatorPanel(object sender, RoutedEventArgs e)
        {
            // Create and show document creator panel.
            CreateQuestions documentCreator = new CreateQuestions();
            documentCreator.Show();
            documentCreator.Focus();
        }

    }
}
